<?php

namespace app\index\controller\gupiao;
use app\index\controller\Base;
use think\Db;


class Index extends Base
{
    public function index()
    {
        // banner信息
        $info = Db::name('banner')
            ->where('is_show',1)
            ->where('is_del',0)
            ->field('pic')
            ->order('sort desc')
            ->select();

        // 公告
        $notice = Db::name("notice")
            ->where('is_show',1)
            ->field('title')
            ->select();

        $this -> assign('info',$info);
        $this -> assign('notice',$notice);
        return $this -> fetch();
    }






}
